<template>
  <el-menu class="el-menu-demo" mode="horizontal" default-active="list">
    <el-menu-item index="list" @click="goRoute">列表</el-menu-item>
    <el-menu-item index="reg" @click="goRoute">登记</el-menu-item>
  </el-menu>

  <RouterView />
</template>

<script lang="ts" setup name="">
import { useRouter } from 'vue-router'
const $router = useRouter()

const goRoute = (item: any) => {
  $router.push({ name: item.index })
}
</script>

<style scoped></style>
